<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
	uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<div class="mainBackground">
	<div class="innerBackground">
<f:view locale="#{visitInfo.currentUser.locale}">
	<f:loadBundle basename="resources.VisionClickResources" var="msg"/>
	<jsp:include page="nav.jsp"/>
	<div class="table" style="width:960px;">
		<div class="tableHead" style="width:960px;"><h:outputText value="#{msg.CreateTask}"/></div>
	<h:form>
		<h:panelGrid border="0" columns="2" width="960">
			<h:outputText value="#{msg.Project}"></h:outputText>
			<h:outputText value="#{visitInfo.currentProject.projectName}"></h:outputText>
			<h:outputText value="Sprint"></h:outputText>
			<h:outputText value="#{visitInfo.currentSprint.sprintName}"></h:outputText>
			<h:outputText value="#{msg.TaskName}"></h:outputText>
			<h:inputText value="#{taskBean.task.taskName}" styleClass="inputText"></h:inputText>
			<h:outputText value="#{msg.ExpectedTime}"></h:outputText>
			<h:inputText value="#{taskBean.task.duration}" styleClass="inputText"></h:inputText>			
			<h:outputText value="#{msg.Developer}"></h:outputText>
				<h:selectOneMenu value="#{taskBean.executorId}">
					<f:selectItem itemLabel="#{msg.WaitToBeFetched}" itemValue="-1"></f:selectItem>
					<f:selectItems value="#{projectBean.projectDevelopers}"></f:selectItems>
				</h:selectOneMenu>
			<h:outputText value="#{msg.Rank}"></h:outputText>
				<h:selectOneMenu valueChangeListener="#{taskBean.changeRank}" immediate="true">
					<f:selectItem itemLabel="Easy" itemValue="0"></f:selectItem>
					<f:selectItem itemLabel="Normal" itemValue="1"></f:selectItem>
					<f:selectItem itemLabel="Hard" itemValue="2"></f:selectItem>
				</h:selectOneMenu>
			<h:outputText value="#{msg.TaskDesc}" ></h:outputText>
				<h:inputTextarea value="#{taskBean.task.taskDesc}" styleClass="inputArea"></h:inputTextarea>
				<h:outputText value=""/>
				<h:panelGroup>
					<h:commandButton value="#{msg.ContinueToAdd}" actionListener="#{taskBean.continueToAdd}" styleClass="button" style="width:100px;"></h:commandButton>
					<h:commandButton value="#{msg.Finish}" action="#{taskBean.finishAdd}" styleClass="button"></h:commandButton>
				</h:panelGroup>
		</h:panelGrid>
	</h:form>
	</div>
	</f:view>
</div>
</div>
</body>
</html>